package com.vast.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vast.system.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value="com.vast.admin.entity.Banner")
@Data
@TableName(value = "banner")
public class Banner extends SuperEntity implements Serializable {
    /**
     * 类型 1-首页头部banner
     */
    @TableField(value = "type")
    @ApiModelProperty(value="类型 1-首页头部banner")
    private Integer type;

    /**
     * 名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="名称")
    private String name;

    /**
     * banner图片链接
     */
    @TableField(value = "url")
    @ApiModelProperty(value="banner图片链接")
    private String url;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="排序")
    private Integer sort;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value="备注")
    private String remark;

    /**
     * 状态0-禁用 1-启用
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态0-禁用 1-启用")
    private Integer status;

    /**
     * 跳转链接
     */
    @TableField(value = "link_url")
    @ApiModelProperty(value="跳转链接")
    private String linkUrl;

    /**
     * 链接类型（1跳转链接 2详情大图）
     */
    @TableField(value = "link_type")
    @ApiModelProperty(value="链接类型（1跳转链接 2详情大图）")
    private Integer linkType;

    /**
     * 点击次数
     */
    @TableField(value = "click_count")
    @ApiModelProperty(value="点击次数")
    private Integer clickCount;

    private static final long serialVersionUID = 1L;

    public static final String COL_TYPE = "type";

    public static final String COL_NAME = "name";

    public static final String COL_URL = "url";

    public static final String COL_SORT = "sort";

    public static final String COL_REMARK = "remark";

    public static final String COL_STATUS = "status";

    public static final String COL_LINK_URL = "link_url";

    public static final String COL_LINK_TYPE = "link_type";

    public static final String COL_CLICK_COUNT = "click_count";
}
